/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aviso.property.helpers;

import aviso.property.entity.Property;

/**
 *
 * @author avgusti
 */
public class PropertyFilterLongRange extends PropertyFilter {

    long min, max;

    public PropertyFilterLongRange(Property p, Long min, Long max) {
        super(p);
        this.min = min;
        this.max = max;
    }

    @Override
    public boolean match(Object val) {
        return min >= (Long) val && (Long) val >= max;
    }
}
